import request from "@/util/request";

/**
 * @description 获取新闻列表
 * @param data
 * @returns {Promise}
 */
export function getNewsList(data){
    return request({
        url:'/news/newsList',
        method:'GET',
        data
    })
}

/**
 * @description 小程序查询新闻列表
 * @param data
 * @returns {Promise}
 */
export function appletQueryList(data){
    return request({
        url:'/news/appletQueryList',
        method:'GET',
        data
    })
}
/**
 * @description 查询新闻子类别
 * @param data
 * @returns {Promise}
 */
export function queryNewsSubcategory(data){
    return request({
        url:'/news/queryNewsSubcategory',
        method:'GET',
        data
    })
}